package com.itheima.d2_buffered_stream;

import java.io.*;

/**
 * 目标：掌握字符缓冲输入流的用法。
 */
public class Test2BufferedReader {
    public static void main(String[] args) throws FileNotFoundException {
        try(FileReader fr = new FileReader("day10io-app2/file/出师表.txt");

            BufferedReader br = new BufferedReader(fr);
        ) {
            String line;
            while ((line = br.readLine())!=null){
                System.out.println(line);
            }
        } catch (IOException e) {
            e.printStackTrace();
        }


    }
}
